/**
 * This class represent the retrieved web page content.
 * 
 * @author mayuri
 * @version Winter 2014
 * 
 */
 
public class PageContent {

    private final String url;

    private final String content;

    public PageContent(final String theUrl, final String theContent) {
           this.url = theUrl;
        this.content = theContent;
    }

    public String getContent() {
        return content;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(" [\nPAGE CONTENT--\n") ;
        sb.append(" URL: " + url +"\n");
        sb.append(" CONTENT: "+ content +"\n");
        sb.append("]");
        return sb.toString();
    }
}
